<div class="box">
    
  <div class="box-header">

    <div class="row">
        <div class="col-sm-5">
            <ob_link><a class="btn" onclick="addMoney()"><i class="fa fa-plus"></i> 新 增</a></ob_link>
            &nbsp;
            <ob_link><a class="btn export" url="{:url('exportMoneyList')}"><i class="fa fa-download"></i> 导 出</a></ob_link>
        </div>
        <div class="col-sm-6">
            挂卖数量：<span style="color:red">{$count}</span> &nbsp;&nbsp;&nbsp;&nbsp;剩余原始币：<span style="color:red">{$counts}</span>
        </div>
        <div class="col-sm-7">
            <div class="box-tools search-form pull-right">
                <div class="input-group input-group-sm">
                    
                    <input type="text" name="search_data" style="width: 200px;" class="form-control pull-right" value="{:input('search_data')}" placeholder="编码|拥有用户名|姓名">

                    <div class="input-group-btn">
                      <button type="button" id="search"  url="{:url('moneyList')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                    </div>

                </div>
           </div>
        </div>
    </div>
    
  </div>
    
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
		<th>ID</th>
          <th>编号</th>
		  <th>类型</th>
          <th>用户名</th>
          <th>拥有时间</th>
          <th>挂卖</th>
		  <th>最近获取</th>
		  <th>状态</th>	  
          <th>操作</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td>{$vo.id}</td>
                  <td>{$vo.code}</td>
				  <td>{if $vo.isys==0 }<img src="/upload/yin.png">{else}<span style="color:yellow"><img src="/upload/jin.png"></span>{/if}</td>
                  <td>{$vo.username}</td>
                  <td>{$vo.create_time}</td>
				  <td>{if $vo.is==0 }否{else}是{/if}</td>
				  <td>{$vo.type|moneyType}</td>
                  <td><a class="confirm ajax-get"  href="{:url('statChange', array('id' => $vo['id'],'status'=>$vo['status'],'page'=>$Think.get.page))}">{$vo.status_text}</a></td>				  
                  <td class="col-md-3 text-center">
                      <ob_link><a href="{:url('moneyLogList', array('id' => $vo['id']))}" class="btn"><i class="fa fa-edit"></i> UDC转让记录</a></ob_link>
                  </td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="8" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
  </div>
<div class="box-footer">
	<a class="btn" onclick="javascript:history.back(-1);return false;"><i class="fa fa-history"></i> 返 回</a>
</div>
  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>

</div>

<script>
    //导出功能
    $(".export").click(function(){
        
        window.location.href = searchFormUrl($(".export"));
    });
	function addMoney(){
		url="{:url('moneyAdd')}";
		if(confirm("每次新增100条勋章，您确定新增勋章吗？")) {  
             window.location.href=url;
        }	
	}
</script>